/*variables*/
$blue: #6eb4e8;
$green: #6cc973;
$purple: #b1a9d4;
$pink: #ef8dba;
$orange: #f9b975;
$peach: #f4a486;
$gray: #444;

$gap: 3px;

$font: 'Ubuntu', sans-serif;

/*mixins*/
@mixin border-radius($radius) {
    -webkit-border-radius: $radius;
    -moz-border-radius: $radius;
    -ms-border-radius: $radius;
    border-radius: $radius;
}
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
  @if $inset {
    -webkit-box-shadow:inset $top $left $blur $color;
    -moz-box-shadow:inset $top $left $blur $color;
    box-shadow:inset $top $left $blur $color;
  } @else {
    -webkit-box-shadow: $top $left $blur $color;
    -moz-box-shadow: $top $left $blur $color;
    box-shadow: $top $left $blur $color;
  }
}

/*reset*/
* {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: $blue;
}
a:focus {outline:none;}
a::-moz-focus-inner {border:0;}
a:hover {
    text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
    font-family: $font;
    font-weight: normal;
}
h1 {font-size: 22px;}
h2 {font-size: 20px;}
h3 {font-size: 18px;}
h4 {font-size: 16px;}
h5 {font-size: 15px;}
h6 {font-size: 14px;}

img {
    max-width: 100%;
    border: 0!important;
}
#contact-map img,
#netmap img {
    max-width: inherit;
    float: none;
}

/*Base*/
html {
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;
    font-family: $font;
    font-weight: 400;
    line-height: 1.4em;
    font-size: 13px;
    color: #666;
}
.wrapper {
    width: 100%;
}

header, section, article, nav, footer {
    display: block;
}
header {
    float: left;
    width: 90%;
    height: 65px;
    margin: 0 auto;
    margin-bottom: $gap;
    float: left;
    ul {
        width: 100%;
        float: left;
        margin: 0;
        padding: 0;
        li.table-display {
            
            a {
                padding:
            }
        }
        li {
            list-style: none;
            width: 1 / 6 * 100%;
            float: left;
            margin: 0;
            padding: 0 $gap;
            a {
                width: 100%;
                height: 65px;
//                line-height: 35px;
                text-align: center;
                background-color: #fff;
                color: $gray;
                display: block;
                border-top: 5px solid;
                font-size: 14px;
                &:hover {
                    text-decoration: none;
                    color: #fff;
//                    line-height: 50px;
                    font-size: 16px;
                }
            }
            a.active {
                text-decoration: none;
                color: #fff;
                line-height: 50px;
                font-size: 16px;
            }
        }
    }
    
    a.blue {
        border-color: $blue;
    }
    a.green {
        border-color: $green;
    }
    a.purple {
        border-color: $purple;
    }
    a.pink {
        border-color: $pink;
    }
    a.orange {
        border-color: $orange;
    }
    a.peach {
        border-color: $peach;
    }
    a.blue:hover,
    a.blue.active {
        background: $blue;
    }
    a.green:hover,
    a.green.active {
        background: $green;
    }
    a.purple:hover,
    a.purple.active {
        background: $purple;
    }
    a.pink:hover,
    a.pink.active {
        background: $pink;
    }
    a.orange:hover,
    a.orange.active {
        background: $orange;
    }
    a.peach:hover,
    a.peach.active {
        background: $peach;
    }    
}
#left-col, #right-col {
    float: left; 
    width: 5%;
    height: 65px;
    ul {
        margin: 0;
        padding: 0;
        text-decoration: none;
        list-style-type: none;
        li {
            margin: 0px 3px 6px 6px;
            text-align: center;
            a {
                display: block;
                width: 100%;
                font-size: 22px;
                line-height: 60px;
                color: #fff!important;
                background-color: #ccc;
                border-top: 5px solid #ccc;
                &:hover {
                    text-decoration: none;
                    background-color: #afafaf;
                    border-top: 5px solid #afafaf;
                }
            }
            a.blue {
                background-color: $blue;
            }
            a.green {
                background-color: $green;
            }
            a.purple {
                background-color: $purple;
            }
            a.pink {
                background-color: $pink;
            }
            a.orange {
                background-color: $orange;
            }
            a.peach {
                background-color: $peach;
            }
        }
    }
}
#right-col {
    li {
        margin: 0px 6px 6px 3px!important;
    }
}
.bx-wrapper .bx-viewport {

}
.bx-wrapper img{
    width: 100%!important;
}
#content {
    clear: both;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 40px;
    .gr1 {
        a {
            float: left;
            width: 100%;
            height: 100%;
            line-height: 100%;
            text-align: center;
            color: #fff;
            text-decoration: none;
            font-size: 16px;
            &:hover {
                
            }
        }
        a.blue {
            background-color: $blue;
        }
        a.green {
            background-color: $green;
        }
        a.purple {
            background-color: $purple;
        }
        a.pink {
            background-color: $pink;
        }
        a.orange {
            background-color: $orange;
        }
        a.peach {
            background-color: $peach;
        }
    }
    .gr1.left {
        
        img {
            width: 100%!important;
        }
    }
}

.gr1, .gr2, .gr3, .gr4 {
    padding: $gap;
}
.gr1 {
     width: 1 / 6 * 100%;
}
.gr2 {
    width: 50%;
}
.gr3 {
    width: 5/6 * 100%;
}
.gr4 {
    width: 100%;
}
.gr-4-col {
    width: 66.2%;
    margin: 0 .3%;
//    width: 4/6 * 100%;
}
.gr-2-col {
    width: 33%; 
//    width: 2/6 * 100%;
}
.left {
    float: left;
}
.right {
    float: right;
}

#content {
//    width: 4/6*100%;
//    width: 100%;
//    margin: 0 1/6*100%;
//    float: left;
    position: relative;
    
    >h1{
        display: none;
        text-align: center;
        margin: 0 0 6px 0;
        line-height: 65px;
    }
}

#i-do {

    img {
        max-width: 70%;
        display: block;
        margin: 22% auto 0;
    }
}
ul#slider {
    overflow: hidden;
    margin: 0;
    padding: 0;

//    iframe {
//        max-height: 500px!important;
//    }
    li{
        padding: 0;
        margin: 0;
    }
}


.tab {
    width: 100%;
    float: left;
    height: 100%;
    color: $gray;
    padding: 20px;
    background:#eee;
}
//.tab.blue {
//    background-color: $blue;
//}
//.tab.green {
//    background-color: $green;
//}
//.tab.purple {
//    background-color: $purple;
//}
//.tab.pink {
//    background-color: $pink;
//}
//.tab.orange {
//    background-color: $orange;
//}
//.tab.peach {
//    background-color: $peach;
//}

#contact-map,
#netmap{
    height: 650px;
}

footer {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 45px;
    line-height: 35px;
    float: left;
    font-size: 11px;
    color: #999;
    padding:5px;
    text-align: center;
    background: rgba(255,255,255,0.8);
    #logo {
        float: left;
        text-align: left;
        width: 30%;
        a {
            width: 108px;
            height: 35px;
            background: url('../images/logo.jpg');
            float: left;
            margin-right: 10px;
        }
    }
    #lang {
        float: left;
        height: 35px;
        text-align: center;
        width: 40%;
        a{
            display: inline-block;
            width: 35px;
            height: 35px;
            background: #ccc;
            line-height: 35px;
            color: #fff;
            margin: 0 2px;
            &.active {
                background: $green
            }
            &:hover{
                background: $green;
                text-decoration: none;
            }
        }
    }
    #kipo {
        float: right;
        height: 35px;
        text-align: right;
        width: 70%;
    }
}



input[type=text],
input[type=email],
textarea{
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 6px;
    line-height: 40px;
    font-size: 18px;
    color: $gray;
    border: 2px solid $blue;
}
input:focus, select:focus, textarea:focus {          
    outline: 0;
    border: 2px solid $green;
}
input.redborder, select.redborder, textarea.redborder {          
    outline: 0;
    border: 2px solid red;
}
textarea{
    min-height: 129px;
}
input[type=submit],
a.button{
    float: right;
    display: block;
    height: 40px;
    line-height: 40px;
    padding: 0 30px;
    background: $pink;
    color: #fff;
    text-transform: uppercase;
    border: none;
    text-decoration: none;
    cursor: pointer;
}
input[type=submit]:hover,
a.button:hover{
    background: $orange;
    text-decoration: none;
}

.message {
    display: block;
    width: 100%;
    background: $green;
    padding: 3%;
    display: none;
}

/*clearfix*/
.cf:before,
.cf:after {
    content: " ";
    display: table;
}
.cf:after {
    clear: both;
}
.cf {
    *zoom: 1; /*For IE 6/7 only*/
}

@media screen and (min-height:1280px) {
    #contact-map,
    #netmap{
        height: 700px;
    }
    iframe {
        height: 700px;
    }
}
@media screen and (max-height:850px) {
    #contact-map,
    #netmap{
        height: 450px;
    }
}
@media screen and (max-height:400px), (max-width:600px) {
    #contact-map,
    #netmap{
        height: 250px;
    }
}

/*bx slider video adjust*/
.bx-wrapper {

    iframe {
        max-height: 600px !important;
    }
}

/*grid special elements adjust for centered multi-line text*/
.table-display {
    
    a {
        display: table;
        position: relative;
        span {
            display: table-cell; 
            vertical-align: middle; 
            text-align: center;
        }
    }
}
.gr1.table-display {
    margin: 0px 0 6px 0;
    a {
        display: table;
        position: relative;
        span {
            display: table-cell; 
            vertical-align: middle; 
            text-align: center;
        }
    }
}
.gr1.table-display-nm {
    margin: 0px 0;
    a {
        display: table;
        position: relative;
        height: 99.99%!important;

        span {
            display: table-cell; 
            vertical-align: middle; 
            text-align: center;
        }
    }
}
.gr3.right.team-heading {
    display: none;
}
.gr3.right {
    h1 {
        display: none;
        text-align: center;
    }
}
.gr1.left {

    h1 {
        line-height: 25px;
    }
}
#lightGallery-slider .lightGallery-slide {
    height: auto;
}
#lightGallery-slider .lightGallery-slide:before {
    height: auto!important;
}
#slider {

    img {
        cursor: zoom-in!important;
    }
}
@media screen and (max-width: 1280px) and (min-width: 700px) {
    /*grid*/
    .gr3 {
        width: 66.63333%;
    }
}
@media screen and (max-width: 1280px) and (min-width: 900px){
    .gr1 {
        width: 25%;
    }
}
@media screen and (max-width: 900px) {

    .gr1 {
        width: 33.3%;
    }
    .gr-2-col {
        width: 29%;
    }
    .gr-4-col {
        width: 70%;
    }
    #i-do img {
//        margin-top: 0;
    }
}

@media screen and (max-width: 900px) and (min-width: 700px) {
    /*grid*/
    #content {
        width: 84%!important;
        margin: 0 auto!important;
    }
    header {
        width: 84%;
    }
    #right-col, #left-col {
        width: 8%;
    }
}
@media screen and (max-width: 700px) {

    .gr3.right {
        h1 {
            display: block;
            text-align: center;
        }
    }
    .gr3.right.team-heading {
        display: block;
    }
    .gr-4-col.right {
        margin-bottom: 100px;
    }
}
@media screen and (max-width: 700px) and (min-width: 481px) {
    
    header {
        a {
            line-height: 35px !important;
            font-size: 22px!important;
            
            &:hover {
                line-height: 55px!important;
            }
        }
        span{
            display: none;
        }
    }
    /*grid*/
    #content {
        width: 80%!important;
        margin: 0 auto!important;
        > h1 {
            display: block;
        }
        img {
            display: block;
            width: 100%!important;
            margin: 0 auto;
        }
    }
    header {
        width: 80%;
    }
    #right-col, #left-col {
        width: 10%;
    }
    .gr1 {
        width: 50%;
    }
    .gr2 {
        width: 100%;
    }
    .gr3 {
        width: 100%;
        margin: 0;
    }
    .gr-2-col {
        width: 100%;
    }
    .gr-4-col {
        width: 100%;
    }
    #i-do img {
        max-width: 40%;
        margin-top: 0;
    }
}
@media screen and (max-width: 480px) {
    header {
        a {
            line-height: 35px !important;
            font-size: 18px!important;
            
            &:hover {
                line-height: 55px!important;
            }
        }
        span{
            display: none;
        }
    }
    /*grid*/
    #content {
        width: 80%!important;
        margin: 0 auto!important;
        > h1 {
            display: block;
        }
        img {
            display: block;
            width: 100%;
            margin: 0 auto!important;
        }
    }
    header {
        width: 80%;
    }
    #left-col, #right-col {
        width: 10%;
    }
    #left-col ul li a, #right-col ul li a {
        font-size: 16px;
        line-height: 100%;
        height: 100%;
        padding: 15% 0;
    }
    .gr1 {
        width: 100%;
//        height: 135px!important;
        margin-bottom: 6!important;
        img {
            display: block!important;
//            height: 130px!important;
            width: 60%;
            
        }
        a {
//            height: 135px!important;
        }
    }
    .gr1.table-display-nm {
//        max-height: 130px!important;
    }
    .gr2 {
        width: 100%;
    }
    .gr3 {
        width: 100%;
        margin: 0;
    }
    .gr-2-col {
        width: 100%;
    }
    .gr-4-col {
        width: 100%;
    }
    #i-do img {
        max-width: 40%;
        margin-top: 0;
    }
}
@media screen and (max-width: 380px) {
    
    #left-col ul li a, #right-col ul li a {
        font-size: 16px;
        line-height: 100%;
        height: 100%;
        padding: 10% 0;
    }
    .bx-wrapper .bx-pager, .bx-wrapper .bx-controls-auto {
        bottom: -60px!important;
    }
}